package com.my.cloud.controller;

import com.my.cloud.apis.PayFeignApi;
import com.my.cloud.resp.ResultData;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/3/12 9:21
 */
@RestController
@RequestMapping("/feign/pay/gateway")
public class OrderGateWayController {
    
    @Resource
    private PayFeignApi payFeignApi;
    
    @GetMapping("/get/{id}")
    public ResultData getById(@PathVariable("id") Integer id){
        return payFeignApi.getById(id);
    }
    
    @GetMapping("/info")
    public ResultData getGateWayInfo(){
        return payFeignApi.getGateWayInfo();
    }
    
}
